package com.zx.controller;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.zx.dao.IClazzDAO;
import com.zx.model.Clazz;
@RestController
@RequestMapping("/clazz")
public class ClazzController {

	
	@Resource
	private IClazzDAO clazzDAO;
	
	/**查询全部班级信息
	 * @return
	 */
	@RequestMapping("/findAll.do")
	public List<Clazz> findAll(){
		return clazzDAO.findAll();
	}
}
